@extends('layout.layout')

@section('content')

<h1 class="page-title">商品分类管理</h1> 
  <div class="row-fluid"> 
   <div class="span12"> 
      
     
    <form action="{{url('/admin/goodscate/insert')}}" method="post">
        <div class="container-fluid">
        <div class="widget" >
        <div class="widget" >
        <h4>修改分类</h4> 
            <div style="margin-left:150px; margin-top:50px;">
           <span  class="help-inline">选择父类</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select id="select-required" name="pid" data-required="true" class="parsley-validated" style="background: rgba(0,0,0,0.5)">
                <option  value="0">顶级分类</option>
                 @foreach($res as $k=>$v)
                <option value="{{$v->id}}">{{$v->name}}</option>
                @endforeach

                
        </select>
        <div class="control-group info">
                                    <label class="control-label" for="inputInfo"></label>
                                    <div class="controls">
                                    <span class="help-inline">分类名称</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input name="name" type="text" id="inputInfo">
                                        
                                    </div>
                                </div>
                         </div>
            <div style="margin-left:270px;">
                <button class="btn btn-primary btn-large  icon-ok">添加分类</button>
           
            </div>
            {{csrf_field()}}
        
     </div>
     </form>
 </div>


@endsection
